package book;



public class BookList {
private Book[] books;
private  int useSize;

public  BookList() {
    this.books = new Book[10];
    this.books[0] = new Book("Java编程","教材",52,"博哥");
    this.books[0] = new Book("水浒传","小说",20,"水浒传");
    this.books[1] = new Book("红楼梦","小说",30,"曹雪芹");
    this.books[2] = new Book("西游记","小说",40,"吴承恩");
    this.useSize = 3;
}

    public Book getBooks(int pos) {
        return books[pos];
    }

    public int getUseSize() {
        return useSize;
    }

    public void setUseSize(int useSize) {
        this.useSize = useSize;
    }

    public void setBooks(Book book,int pos) {
        books[pos] = book;
    }
}
